//
//  Person.m
//  OC03_属性_点语法
//
//  Created by Scott on 16/2/26.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "Person.h"

@implementation Person

#pragma mark - init
- (instancetype)initWithName:(NSString *)name sex:(NSString *)sex age:(NSInteger)age {
    
    self = [super init];
    if (self) {
        
        _name = name;
        _sex = sex;
        _age = age;
    }
    return self;
}




#pragma mark - 构造器
+ (instancetype)person {
    
    return [[Person alloc] init];

}

+ (instancetype)personWithName:(NSString *)name sex:(NSString *)sex age:(NSInteger)age {
    
    return [[Person alloc] initWithName:name sex:sex age:age];
}




#pragma mark - other








@end
